import { CommonColumnEntity } from '../../../../util/entity/common.column.entity';
import { Allow, IsInt, IsString } from 'class-validator';

export class CreateRechargeDto extends CommonColumnEntity {
  @IsString()
  name: string;
  @IsInt()
  buyPriceType: number;
  @IsInt()
  buyNum: number;
  @IsInt()
  rewardPriceType: number;
  @IsInt()
  rewardNum: number;
  @Allow()
  imageUrl: string;
}
